package com.sunjob.loginserver.otherService;

import com.sunjob.common.domain.img.SysImg;
import com.sunjob.common.result.Result;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Wangzurong
 * @create 2022-08-09 10:31
 */
@FeignClient("MROIMGSERVER")
@Component
public interface ImgService {
    @PostMapping("/pushImg")
     Result<SysImg> pushImg(@RequestBody SysImg sysImg);
    @PostMapping("/pushImgPrivate")
     Result<SysImg> pushImgPrivate(@RequestBody SysImg sysImg);
    @GetMapping("/getImgById/{imgId}")
    Result<SysImg> getImgById(@PathVariable("imgId") Long imgId);
}
